<h2>Projekt</h2>
<% @DevProjects.each do |dev| %>
<table class="table">
	<thead>
		<tr>
			<th>Projekt namn</th>
			<th>start</th>
			<th>slut</th>
			<th>Ta bort</th>
			<th>Ändra</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td><%= link_to(dev.Docs, dev_project_path(dev)) %></td>
			<td><%= dev.start%></td>
			<td><%= dev.stop%></td>
			<td><%= link_to 'X', dev, :confirm => "Are you sure you want to delete ?", :method => :delete, :class => "dev_projects" %></td>
			<td><%= link_to 'edit', :id => dev.id, :controller => :dev_projects, :action => "edit" %></td>
		</tr>
	</tbody>
</table>

<%end%>

<p>
	<%= link_to("Skapa ett Projekt", {:controller => "dev_projects", :action => "new" }) %>
</p>
<%= form_tag dev_projects_path, :method => 'get' do %> <h4>Sök på [Projekt]</h4>
<%= text_field_tag :search, params[:search] %>
<%= submit_tag "Search", :name => nil %>

<% end %> 